<include file="__THEME__/header" />


<script type="text/javascript" src="../Public/Js/Common.js"></script>
<link  href="../Public/layout.css" rel="stylesheet" type="text/css"/>
<link  href="../Public/group.css" rel="stylesheet" type="text/css"/>

</head>

<body>

<div class="content"><!-- 内容 begin  -->
  <!-- 用户组件列表 begin -->
   <include file="__THEME__/apps" />      
  <!-- 用户组件列表 end -->
  
  <div class="main"> <!-- 右侧内容 begin  -->
  <div class=page_title> <!-- page_title begin -->
  	<div class="left" style="width:80px;">
    	<span class="headpic50"><a href="__APP__/Group/index/gid/{$gid}"><img src="__ROOT__/thumb.php?w=50&h=50&url={$groupinfo['logo']|get_photo_url}"/></a></span>
    </div>
    <div class="left" style="width:583px;">
    	<h2> <a href="__APP__/Group/index/gid/{$gid}">{$groupinfo.name}</a> > 上传文件 </h2>
        <p><a href="__URL__/index/gid/{$gid}">返回文件列表</a></p>
      </div>
    <div class="left alR lh30" style="width:170px;">
        <a href="javascript:window.history.back()">&lt;&lt;返回上一页</a></div>
  <div class="c"></div>
</div><!-- page_title end -->

  <div class="groupBox">
  <div class="boxL" style="width:100%;">
    <div class="box1">
    <if condition=" $uploadSuccess ">
    <div class="msg">
    	<h2 class="f14px"><img src="../Public/images/fzcg_dh[1].gif" />文件上传成功！</h2>
        <p>你可以到文件共享区<a href="__URL__/file/gid/{$gid}/fid/{$fid}">查看这个文件</a>，或者继续<a href="__URL__/upload/gid/{$gid}">上传文件</a></p>
    </div><br />
    <a href="__APP__/Dir/index/gid/{$gid}" class="f14px">进入文件共享区 &gt;&gt;</a>
    <else />
    <form method="post" action="__URL__/upload/gid/{$gid}" enctype="multipart/form-data" onSubmit="return checkForm()">
  	<h3>上传文件</h3>
		<ul class="file">
        <li><div class="left lh20" style="width:80px">文件路径：</div><div class="left lh20"><input name="uploadfile" type="file" id="file" /></div>(仅支持：{$upload['allow_exts']} 最大上传文件：{$config['simpleFileSize']}M)</li>
        <li><div class="left lh20" style="width:80px">文件注释：</div><div class="left lh20"><input name="note" type="text" /></div></li>
        <li><div class="left lh20" style="width:80px">&nbsp;</div><div class="left lh20">
        		<input type="hidden" name="uploadsubmit" value="1">
        		<input name="submit" type="submit" class="btn_b" value="上 传"/>
          &nbsp;<input name="reset" type="button" class="btn_w" value="取 消" /> 
            </div></li>
        </ul>
     </form> 
     </if> 
    </div>
    </div>
  <!-- end  -->
  </div>  </div><!-- 右侧内容 end  -->
  <div class="c"></div>
</div><!-- 内容 end -->
<script>
	function checkForm() {
		if($('#file').val() == '') {alert('请上传文件');return false;}
		return true;
	}
</script>
<include file="__THEME__/footer" />
</body>
</html>
